from rest_framework import serializers
from basic_info.models import Nation, Province, City


class NationSerializer(serializers.ModelSerializer):
    """
    国家列化器
    """
    class Meta:
        model = Nation
        fields = '__all__'


class ProvinceSerializer(serializers.ModelSerializer):
    """
    省份列化器
    """
    class Meta:
        model = Province
        fields = '__all__'


class CitySerializer(serializers.ModelSerializer):
    """
    城市列化器
    """
    class Meta:
        model = City
        fields = '__all__'